package com.bjpowernode.db.mapper;

import com.bjpowernode.db.domain.ProductInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 30402
 * @description 针对表【b_product_info(产品信息表)】的数据库操作Mapper
 * @createDate 2023-08-28 16:28:29
 * @Entity com.bjpowernode.db.domain.ProductInfo
 */
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {

    ProductInfo selectByIdForUpdate(@Param("productId") Integer productId);

    int updateLeftMoneyByBidProduct(@Param("productId") Integer productId, @Param("bidMoney") BigDecimal bidMoney);

}




